import 'package:flutter_blue_plus/flutter_blue_plus.dart';

class UuidUtils {
  static final Guid SET_MODE_SERVICE_UUID =
      Guid("4F54C00C-372D-75E8-3FB2-F2699BB23E40"); //设置模式-主服务UUID
  static final Guid SET_MODE_CHARACTERISTIC_UUID =
      Guid("4F54C00D-372D-75E8-3FB2-F2699BB23E40"); //设置模式-可通知服务UUID
  static final Guid WRITE_DATA_SERVICE_UUID =
      Guid("4F54C00E-372D-75E8-3FB2-F2699BB23E40"); //写数据-服务UUID

  static final Guid DEVICE_INFO_SERVICE =
      Guid("0000180A-0000-1000-8000-00805F9B34FB"); //设备信息
  static final Guid DEVICE_FIRMWARE_INFO =
      Guid("00002A26-0000-1000-8000-00805F9B34FB"); //设备身份标识
  static final Guid DEVICE_SOFTWARE_INFO =
      Guid("00002A28-0000-1000-8000-00805F9B34FB"); //设备功能标识

  static final Guid BATTERY_SERVICE_UUID =
      Guid("0000180F-0000-1000-8000-00805F9B34FB"); //获取电量信息
  static final Guid BATTERY_CHARACTERISTIC_UUID =
      Guid("00002a19-0000-1000-8000-00805F9B34FB"); //获取电量

  static final Guid BIG_FILE_TRANSFER_SERVER_UUID =
      Guid("06E9CDD2-C2B8-662D-1817-07519D11724D"); //大文件uuid

  static final Guid BIG_FILE_TRANSFER_CHARACTERISTIC_RED_UUID =
      Guid("06E9CDD3-C2B8-662D-1817-07519D11724D"); // 大文件可通知特征UUID

  static final Guid BIG_FILE_TRANSFER_CHARACTERISTIC_WRITE_UUID =
      Guid("06E9CDD4-C2B8-662D-1817-07519D11724D"); // 大文件可写特征UUID

  static final Guid BIG_FILE_TRANSFER_CHARACTERISTIC_READ_UUID =
      Guid("06E9CDD5-C2B8-662D-1817-07519D11724D"); // 大文件可读特征UUID

  static final Guid SET_MODE_DESCRIPTOR_UUID =
      Guid("00002902-0000-1000-8000-00805f9b34fb"); //设置模式-特征值描述UUID(固定不变)

  static final List<int> ENABLE_NOTIFICATION_VALUE = [
    0x01,
    0x00
  ]; //启用Notification模式
  static final List<int> DISABLE_NOTIFICATION_VALUE = [
    0x00,
    0x00
  ]; //停用Notification模式
  static final List<int> ENABLE_INDICATION_VALUE = [
    0x02,
    0x00
  ]; //启用Indication模式
}
